 <%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>【发行】待发货区</title>
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/default/easyui.css" />
	    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/icon.css" />
	    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/ainit.css" type="text/css"></link>
	 	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.3.min.js"></script>
	 	<script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>
	    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.1.3.1.js"></script>
	    <script type="text/javascript" src="${pageContext.request.contextPath}/js/locale/easyui-lang-zh_CN.js"></script>
	    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.json-2.4.min.js"></script>
	    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/jquery.ainit-1.1.0.js"></script>
	    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/model.js"></script> 
	    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/butnScript.js"></script> 
		<script type="text/javascript" src="${pageContext.request.contextPath}/model/dataList/element.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/model/dataList/joinElement.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/fxSpecialPage/waitFH.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/model/sysRight/sysRight.js"></script>
		<script type="text/javascript">
			$(function(){
				//屏幕的高度
				var clientH=document.documentElement.clientHeight;
				var clientW=document.documentElement.clientWidth;
				var usableH=(parseInt(clientH)-130);
				initFH();
				//加载查询条件的回车事件
				$('#waitFhTabs').tabs({
					onSelect:function(title){
					  	if(title ==waitFHTitles[0]){  // '按商品(未检验)'
					  		//保存和部门审核按钮可用 确认发货和取消发货按钮不可用  
					  		 $('#save_btn').linkbutton('enable'); 
					  		 $('#derpVer_btn').linkbutton('enable');
					  		 $('#XSsureFh_btn').linkbutton('disable'); 
					  		 $('#sureFh_btn').linkbutton('disable'); 
					  		 $('#canelFh_btn').linkbutton('disable');
					  	}
					  	else if(title==waitFHTitles[1]){ //'按商品(已验待发)'
					  		// 确认发货和取消发货按钮可用   保存和部门审核按钮不可用
					  	 	 $('#save_btn').linkbutton('disable'); 
					  		 $('#derpVer_btn').linkbutton('disable');
					  		 $('#sureFh_btn').linkbutton('enable'); 
					  		 $('#canelFh_btn').linkbutton('enable');
					  		 $('#XSsureFh_btn').linkbutton('enable');
			  			}
					}   
				});
				$("#waitFhTabs").width(clientW-20);
				$("#waitFhTabs").height(usableH);
			});
		</script>
	</head>
	<body id="bd">
 		<div  id="fahuoquTab">
 			<div id='fh_comm_use' style="height: 110px;">
 				<table cellpadding="0" cellspacing="0" style="width: 100%;table-layout:fixed;margin-top: 10px;">
 					<tr>
 						<td align="left" style="width: 60%;font-size: 12px;" >
 							<table class='tableBord' id="sdf_commUse"  style="float: left;">
 							</table> 
 						</td>
 						<td align="right" style="vertical-align: top;width:40%;"> 
 							<div style="vertical-align: top;margin-right: 15px;" align="left" id="bap_M_UBUTN">
 								<a id="query_btn" class="easyui-linkbutton l-btn"    onclick="loadDataFH(this)"  iconcls="icon-search" style="display: inline-block;">查询</a> 
								<a id="save_btn"  class="easyui-linkbutton l-btn"   onclick="derpSave(this)" iconcls="icon-save" style="display: inline-block;">保存</a> 
								<a id="derpVer_btn"  class="easyui-linkbutton l-btn"   onclick="derpVerify(this)"  iconcls="icon-approve" style="display: inline-block;">部门审核</a> 
								<a id="sureFh_btn"  class="easyui-linkbutton l-btn"   onclick="sureFH(this)"  iconcls="icon-ok" style="display: inline-block;">确认发货</a> 
								<a id="XSsureFh_btn"  class="easyui-linkbutton l-btn"   onclick="clientsureFH(this)"  iconcls="icon-ok" style="display: inline-block;">合并发货</a>
								<a id="canelFh_btn"  class="easyui-linkbutton l-btn"  onclick="ywQxFh(this)" iconcls="icon-cancel" style="display: inline-block;">取消发货</a> 
								<a id="RESET_btn"  class="easyui-linkbutton l-btn"   onclick="dfhqresult(this)"  iconcls="icon-reset" style="display: inline-block;">重置</a> 
							</div>
 						</td>
 					</tr>
 				</table>
 			</div>
 			<div id="waitFhTabs" class="easyui-tabs"  style="min-height: 400px;overflow:auto;">
 				<div title="按商品(未检验)" > 
 						<div id="prodGroupWY" dsId="ds_fx_hand_out2" realdsid="ds_fx_hand_out2" prefix="sdfn"   style="width:100%;height: 100%;"></div>
 				</div>
 				<div title="按商品(已验待发)" >
 						<div id="prodGroupYY" dsId="ds_fx_hand_out3" realdsid="ds_fx_hand_out3" prefix="sdfy"   style="width: 100%;height: 100%;"></div>
 				</div>
 			</div>
 		</div>
 		<input type="hidden" id="${m.prefix}_dsId" value="${m.dsId}"/>
		<input type="hidden" id="${m.prefix}_type" value="${m.type}"/>
		<input type="hidden" id="${m.prefix}_jsUrl" value="${m.jsUrl}"/>
		<input type="hidden" id="${m.prefix}_prefix" value="${m.prefix}"/>
		<input type="hidden" id="${m.prefix}_initFunc" value="${m.initFunc}"/>
		<input type="hidden" id="${m.prefix}_ainitFunc" value="${m.ainitFunc}"/>
		<input type="hidden" id="${m.prefix}_keyValue" value="${m.keyValues}"/>
		<input type="hidden" id="${m.prefix}_choice" value="${m.choice}"/>
		<input type="hidden" id="${m.prefix}_aoru" value="${m.aoru}"/>
		<input type="hidden" id="${m.prefix}_winitFunc" value="${m.winitFunc}"/>
		<input type="hidden" id="${m.prefix}_wainitFunc" value="${m.wainitFunc}"/>
		<input type="hidden" id="${m.prefix}_totalFlag" value="${m.totalFlag}"/>
		<input type="hidden" id="${m.prefix}_moro" value="${m.moro}"/>
    </body>
</html>